﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Main.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcApplication1.Models.GetDislocation_Result>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Index</h2>

<p>
    <%: Html.ActionLink("Create New", "Create") %>
</p>
<table>
    <tr>
        <th>
            <%: Html.DisplayNameFor(model => model.CarNumber) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Weight) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.StationArr) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.CargoName) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.ConsigneeCode) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.CarParkType) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.StationDisp) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.CarOper) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.OperationDateTime) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.stationOper) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.RoadDel) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.RoadRec) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.TrainIndex) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.TrainNumber) %>
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.CarNumber) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Weight) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.StationArr) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.CargoName) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.ConsigneeCode) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.CarParkType) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.StationDisp) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.CarOper) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.OperationDateTime) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.stationOper) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.RoadDel) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.RoadRec) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.TrainIndex) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.TrainNumber) %>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
            <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) %> |
            <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ }) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>
